package com.tegistuff.webos.run.debugger;

import com.intellij.xdebugger.frame.XSuspendContext;
import org.json.JSONObject;

/**
 * WebOSSuspendContext.java
 *
 * Copyright (C) 2011-2012 Timo Tegtmeier.
 * All rights reserved.
 */
public class WebOSSuspendContext extends XSuspendContext {

    private WebOSExecutionStack myExecutionStack;
    private WebOSExecutionStack[] myExecutionStacks;
    
    public WebOSSuspendContext(WebOSDebugProcess debugProcess, JSONObject frameData) {
        myExecutionStack = new WebOSExecutionStack(debugProcess, frameData);
        myExecutionStacks = new WebOSExecutionStack[1];
        myExecutionStacks[0] = myExecutionStack;
    }


    @Override
    public WebOSExecutionStack getActiveExecutionStack() {
        return myExecutionStack;
    }

    @Override
    public WebOSExecutionStack[] getExecutionStacks() {
        return myExecutionStacks;
    }
}
